package com.ry.thread.register.client;

import lombok.extern.slf4j.Slf4j;

/**
 * ServerClient
 *
 * @author jiangyixin
 * @version 1.0
 * @date 2021/6/30 下午5:51
 */
public class HttpSender {
    
    public RegisterResponse register(RegisterRequest request) {
        System.out.println("服务实例[" + request.getServiceInstanceId() + "]，发送请求注册");
        RegisterResponse response = new RegisterResponse();
        response.setStatus(RegisterResponse.SUCCESS);
        return response;
    }
    
    
    public HeartbeatResponse heartBeat(HeartbeatRequest request) {
        System.out.println("服务实例[" + request.getServiceInstanceId() +"]");
        HeartbeatResponse response = new HeartbeatResponse();
        response.setStatus(RegisterResponse.SUCCESS);
        return response;
    }
}
